package com.china.juju.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="zutuan_module"
    ,catalog="zutuan_prot"
)
public class ZutuanModule  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.ZutuanModule";
	public static final String TABLE_NAME="zutuan_module";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_modulename = "modulename"; 
	public static final String P_methods = "methods"; 
	public static final String P_parents = "parents"; 

     private String id;
     private String modulename;
     private String methods;
     private String parents;

    public ZutuanModule() {
    }
    public ZutuanModule(String id, String modulename, String methods, String parents) {
        this.id = id;
        this.modulename = modulename;
        this.methods = methods;
        this.parents = parents;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="modulename", nullable=false, length=100)
    public String getModulename() {
        return this.modulename;
    }
    
    public void setModulename(String modulename) {
        this.modulename = modulename;
    }
    
    @Column(name="methods", nullable=false, length=100)
    public String getMethods() {
        return this.methods;
    }
    
    public void setMethods(String methods) {
        this.methods = methods;
    }
    
    @Column(name="parents", nullable=false, length=36)
    public String getParents() {
        return this.parents;
    }
    
    public void setParents(String parents) {
        this.parents = parents;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


